﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DieuTriNoiTru.includes;

namespace DieuTriNoiTru.includes
{
    public partial class frmCN_Benh : Form
    {
        public frmCN_Benh()
        {
            InitializeComponent();
            getAllData();
        }

        DataTable dt = new DataTable();
        // lay tat ca du lieu cua 1 table
        void getAllData()
        {
            MTSTable wtb = new MTSTable();
            wtb.Tablename = "BENH";
            wtb.GetData = "*";
            DataTable dt = new DataTable();
            connection obj = new connection();
            dt = wtb.Select();
            this.dtBenh.DataSource = dt;
        }

        private void lstBenh_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
